package unit;

public class Variable {
    private String name;
    private boolean isConst;
    private int firstLength;
    private int secondLength;

    public Variable(String name, boolean isConst, int firstLength, int secondLength) {
        this.name = name;
        this.isConst = isConst;
        this.firstLength = firstLength;
        this.secondLength = secondLength;
    }

    public Variable(String name, boolean isConst, int firstLength) {
        this.name = name;
        this.isConst = isConst;
        this.firstLength = firstLength;
        this.secondLength = 0;
    }

    public Variable(String name, boolean isConst) {
        this.name = name;
        this.isConst = isConst;
        this.firstLength = 0;
        this.secondLength = 0;
    }

    public String getName() {
        return name;
    }

    public boolean isConst() {
        return isConst;
    }

    public int getFirstLength() {
        return firstLength;
    }

    public int getSecondLength() {
        return secondLength;
    }


}
